﻿using DingTalk.Corp;
using Microsoft.Extensions.Configuration;
using MiniFox.Configurations;

namespace DingTalk.Corp.Message.Configurations
{
    /// <summary>
    /// 
    /// </summary>
    [Section(ELEMENT_NAME)]
    public class DingTalkCorpMessageConfiguration : IDingTalkCorpMessageConfiguration
    {
        internal const string ELEMENT_NAME = "minifox:dingtalk:corp.message";

        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("msgSendUri")]
        public string MessageSendUri
        {
            get;
            set;
        } = IDingTalkCorpMessageConfiguration.MESSAGE_SEND_URI;
        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("msgResultUri")]
        public string MessageResultUri
        {
            get;
            set;
        } = IDingTalkCorpMessageConfiguration.MESSAGE_RESULT_URI;
        /// <summary>
        /// 
        /// </summary>
        [ConfigurationKeyName("msgStatusUpdateUri")]
        public string MessageStatusUpdateUri
        {
            get;
            set;
        } = IDingTalkCorpMessageConfiguration.MESSAGE_STATUS_UPDATE_URI;
    }
}
